package com.ruoyi.project.comp.setting.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.comp.setting.mapper.CompSettingMapper;
import com.ruoyi.project.comp.setting.domain.CompSetting;
import com.ruoyi.project.comp.setting.service.ICompSettingService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 参赛设置Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-02
 */
@Service
public class CompSettingServiceImpl implements ICompSettingService 
{
    @Autowired
    private CompSettingMapper compSettingMapper;

    /**
     * 查询参赛设置
     * 
     * @param id 参赛设置主键
     * @return 参赛设置
     */
    @Override
    public CompSetting selectCompSettingById(Long id)
    {
        return compSettingMapper.selectCompSettingById(id);
    }

    /**
     * 查询参赛设置列表
     * 
     * @param compSetting 参赛设置
     * @return 参赛设置
     */
    @Override
    public List<CompSetting> selectCompSettingList(CompSetting compSetting)
    {
        return compSettingMapper.selectCompSettingList(compSetting);
    }

    /**
     * 新增参赛设置
     * 
     * @param compSetting 参赛设置
     * @return 结果
     */
    @Override
    public int insertCompSetting(CompSetting compSetting)
    {
        return compSettingMapper.insertCompSetting(compSetting);
    }

    /**
     * 修改参赛设置
     * 
     * @param compSetting 参赛设置
     * @return 结果
     */
    @Override
    public int updateCompSetting(CompSetting compSetting)
    {
        return compSettingMapper.updateCompSetting(compSetting);
    }

    /**
     * 批量删除参赛设置
     * 
     * @param ids 需要删除的参赛设置主键
     * @return 结果
     */
    @Override
    public int deleteCompSettingByIds(String ids)
    {
        return compSettingMapper.deleteCompSettingByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除参赛设置信息
     * 
     * @param id 参赛设置主键
     * @return 结果
     */
    @Override
    public int deleteCompSettingById(Long id)
    {
        return compSettingMapper.deleteCompSettingById(id);
    }
}
